/**
 * 
 */
package com.java.test.user.dto;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

/**
 * @author 会员分成
 *
 */
public class MemberSliceInfo implements RowMapper<MemberSliceInfo>{
	// 会员分成id
	private int id;
	
	// 
	private String sliceName;
	
	// 分层条件
	private int count;
	
	// 备注
	private String content;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getSliceName() {
		return sliceName;
	}

	public void setSliceName(String sliceName) {
		this.sliceName = sliceName;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	
	

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public MemberSliceInfo mapRow(ResultSet rs, int rowNum) throws SQLException {
		
		MemberSliceInfo info  = new MemberSliceInfo();
		info.setId(rs.getInt("id"));
		info.setCount(rs.getInt("count"));
		info.setSliceName(rs.getString("slice_name"));
		info.setContent(rs.getString("content"));	
		return info;
	}
	
}
